<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>站点配置项</title>
    <hdjs/>
    <bootstrap/>
    <!-- <css file="__CONTROL_TPL__/css/css.css"/> -->
</head>
<body>
<div class="wrap">
    <div class="title-header">站点配置</div>
    <form action="" method="post" class="form-inline hd-form" onsubmit="return hd_submit(this)">
        <table class="table1">
            <tr>
                <th colspan="100">站点信息</th>
            </tr>
            <tr>
                <td class="w100">名称</td>
                <td class="w100">值</td>
                <td class="w150">标题</td>
                <td class="w150">描述</td>
            </tr>
            <foreach from="$data[1]" value="$value">
                <tr>
                    <td class="w100">{$value.name}</td>
                    <td class="w100">
                        <if value="$value['name'] eq 'index_tpl_style'">
                            <select name="coid[{$value.coid}]" class="w150">
                                <foreach from="$dir" value="$v">  
                                    <option value="{$v.name}" <if value="$value['value'] eq $v['name']">selected="selected"</if>>{$v.name}</option>
                                </foreach>
                            </select>
                        <else/>
                            <input type="text" value="{$value.value}" name="coid[{$value.coid}]"/>
                        </if>
                    </td>
                    <td class="w150">{$value.title}</td>
                    <td class="w150">{$value.des}</td>
                </tr>
            </foreach>
            <tr>
                <th colspan="100">验证码配置</th>
            </tr>
            <tr>
                <td class="w100">名称</td>
                <td class="w100">值</td>
                <td class="w150">标题</td>
                <td class="w150">描述</td>
            </tr>
            <foreach from="$data[2]" value="$value">
                <tr>
                    <td class="w100">{$value.name}</td>
                    <td class="w100">
                        <input type="text" value="{$value.value}" name="coid[{$value.coid}]"/>
                    </td>
                    <td class="w150">{$value.title}</td>
                    <td class="w150">{$value.des}</td>
                </tr>
            </foreach>
            <tr>
                <th colspan="100">水印配置</th>
            </tr>
            <tr>
                <td class="w100">名称</td>
                <td class="w100">值</td>
                <td class="w150">标题</td>
                <td class="w150">描述</td>
            </tr>
            <foreach from="$data[3]" value="$value">
                <tr>
                    <td class="w100">{$value.name}</td>
                    <td class="w100">
                        <input type="text" value="{$value.value}" name="coid[{$value.coid}]"/>
                    </td>
                    <td class="w150">{$value.title}</td>
                    <td class="w150">{$value.des}</td>
                </tr>
            </foreach>
            <tr>
                <th colspan="100">缩略图配置</th>
            </tr>
            <tr>
                <td class="w100">名称</td>
                <td class="w100">值</td>
                <td class="w150">标题</td>
                <td class="w150">描述</td>
            </tr>
            <foreach from="$data[4]" value="$value">
                <tr>
                    <td class="w100">{$value.name}</td>
                    <td class="w100">
                        <input type="text" value="{$value.value}" name="coid[{$value.coid}]"/>
                    </td>
                    <td class="w150">{$value.title}</td>
                    <td class="w150">{$value.des}</td>
                </tr>
            </foreach>

        </table>
        <div class="position-bottom">
            <input type="submit" class="hd-success" value="保存"/>
        </div>
    </form>
</div>
</body>
</html>